package list;

import java.util.List;
import java.util.Arrays;

public class AsListTest {

    public static void main(String[] args) {

        String[] strings = new String[5];
        List<String> list = Arrays.asList(strings);

        list.set(0, "Hello");
        list.set(1, "Hello");
        list.set(2, "Hello");
        list.set(3, "Space");
        list.set(4, "World");

        for (String element : strings) {
            System.out.println(element);
        }
    }
}
